﻿using System.ComponentModel.DataAnnotations;

namespace HomeCloudStorageSystem.Dtos
{
    /// <summary>
    /// 用户注册 Dto
    /// </summary>
    public class UserForCreationDto
    {
        /// <summary>
        /// 用户名
        /// </summary>
        [Required(ErrorMessage = "用户名不能为空")]
        public string UserName { get; set; }
        /// <summary>
        /// 登录密码
        /// </summary>
        [Required(ErrorMessage = "登录密码不能为空")]
        public string Password { get; set; }
        /// <summary>
        /// 电话
        /// </summary>
        public string? Phone { get; set; }
        /// <summary>
        /// 家庭角色
        /// </summary>
        [Required(ErrorMessage = "用户家庭角色不能为空")]
        public string Role { get; set; }
        /// <summary>
        /// 注册时间
        /// </summary>
        [Required(ErrorMessage = "注册时间不能为空")]
        public DateTime RegisterDate { get; set; }
        /// <summary>
        /// 用户头像
        /// </summary>
        public string? HeadImag { get; set; }
        /// <summary>
        /// 用户状态
        /// </summary>
        [Required(ErrorMessage = "用户状态不能为空")]
        public int State { get; set; }
    }
}
